(function(angular) {
    "use strict";

    var app_module = angular.module("cloapCertificateApp");

    app_module.config(function($stateProvider) {
        $stateProvider.
          state("cloapCertificateApp", {
              url: "/cloapCertificateApp",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/main.html"
          }).

    /* 统计分析 */
          state("cloapCertificateApp.statistics", {
              url: "/statistics",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/statistics_statistics.html",
              controller: "statisticsCtl"
          }).

          // 持证到期分析
          state("cloapCertificateApp.statistics.duedate", {
              url: "/duedate",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/statistics_duedate_list.html",
              controller: "statistics.duedate.listCtl"
          }).

          // 持证缺失分析
          state("cloapCertificateApp.statistics.lost", {
              url: "/lost",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/statistics_lost_list.html",
              controller: "statistics.lost.listCtl"
          }).

          // 持证率分析
          state("cloapCertificateApp.statistics.hold_rate", {
              url: "/hold_rate",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/statistics_hold_rate_list.html",
              controller: "statistics.hold_rate.listCtl"
          }).

    /* 证书 */
          state("cloapCertificateApp.certificate", {
              url: "/certificate",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/certificate_certificate.html"
          }).

          // 证书类型
          state("cloapCertificateApp.certificate.type", {
              url: "/type",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/certificate_type_list.html",
              controller: "certificate_type.listCtl"
          }).
          // 证书登记
          state("cloapCertificateApp.certificate.register", {
              url: "/register",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/certificate_register_list.html",
              controller: "certificate.register.listCtl"
          }).

    /* 审查机构及岗位 */
          state("cloapCertificateApp.check_organ", {
              url: "/check_organ",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/check_organ_list.html",
              controller: "check_organ.listCtl"
          }).

    /* 机构控管 */
          state("cloapCertificateApp.organ_control", {
              url: "/organ_control",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/organ_control_list.html",
              controller: "organ_control.listCtl"
          }).

    /* 持证要求 */
          state("cloapCertificateApp.certificate_require", {
              url: "/certificate_require",
              templateUrl: "/cloap/app/cloapCertificateApp/partial/certificate_require_list.html",
              controller: "certificate_require.listCtl"
          });
    });
}(angular));
